package com.wcy.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wcy.annotation.pageVo.PageColumn;
import com.wcy.annotation.pageVo.PageName;
import com.wcy.annotation.pageVo.SelectionAnnotation;
import lombok.*;
import lombok.experimental.Accessors;
/**
 * <p>
 * 
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-27
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("resource_tag_mapping")
@PageName(name = "资源标签映射")
public class ResourceTagMapping {

    @PageColumn( prop="resourceId", label="资源ID", type="select",selectRef = @SelectionAnnotation(apiUrl = "resource/list",mapProp = "resourceId",mapLabel = "title"))
    private Integer resourceId;
    @PageColumn(prop="tagId", label="标签ID", type="select",selectRef = @SelectionAnnotation(apiUrl = "tag/list",mapProp = "tagId",mapLabel = "tagName"))
    private Integer tagId;
}
